*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    min-height: 100vh;
    background: #222;
}
.spark{
    position: absolute;
    width: 40px;
    height: 40px;
    transform: translate(0px,-20px);
}
.spark span{
    position: absolute;
    width: 2px;
    height: 20px;
    pointer-events: none;
    transform-origin: bottom;
    overflow: hidden;
    filter: drop-shadow(0 0 20px #0f0) drop-shadow(0 0 40px #0f0);
}
.spark span::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: #0f0;
    animation: animate 1s ease-in-out forwards;
}
@keyframes animate{
    0%{
        transform: translateY(100%);
    }
    100%{
        transform: translateY(-100%);
    }
}